import Vue from 'vue'
import App from './App'
App.mpType = 'app'
// Vuex
import store from './store'
Vue.prototype.$store = store
// Vue的配置
import './Vue.js';

// 组件 - 通用
import avatar from './components/nddyny/common/avatar.vue';
import custom from './components/nddyny/common/custom.vue';
import drawer from './components/nddyny/common/drawer.vue';
import emptyList from './components/nddyny/common/emptyList.vue';
import modalDialog from './components/nddyny/common/modalDialog.vue';
import navTabList from './components/nddyny/common/navTabList.vue';
import navTabs from './components/nddyny/common/navTabs.vue';
import foot from './components/nddyny/common/foot.vue';
import list from './components/nddyny/common/list.vue';
import pay from './components/nddyny/common/pay.vue';
import verticalNav from './components/nddyny/common/verticalNav.vue';
Vue.component('avatar', avatar)
Vue.component('custom', custom)
Vue.component('drawer', drawer)
Vue.component('emptyList', emptyList)
Vue.component('modalDialog', modalDialog)
Vue.component('navTabList', navTabList)
Vue.component('navTabs', navTabs)
Vue.component('foot', foot)
Vue.component('list', list)
Vue.component('pay', pay)
Vue.component('verticalNav', verticalNav)
// 组件 - 通用 - base
import nGrid from './components/nddyny/common/base/nGrid.vue';
import nBar from './components/nddyny/common/base/nBar.vue';
import nMenuItemContentAction from './components/nddyny/common/base/nMenuItemContentAction.vue';
import nMenuItemTopBottom from './components/nddyny/common/base/nMenuItemTopBottom.vue';
import nMenuItemRow1 from './components/nddyny/common/base/nMenuItemRow1.vue';
import nMenuItemRow2 from './components/nddyny/common/base/nMenuItemRow2.vue';
import nFormButton from '@/components/nddyny/common/base/nFormButton.vue';
import nButton from '@/components/nddyny/common/base/nButton.vue';
import nButtonTopRightFloat from '@/components/nddyny/common/base/nButtonTopRightFloat.vue';
import nFormItem from '@/components/nddyny/common/base/nFormItem.vue';
import nDesc from './components/nddyny/common/base/nDesc.vue';
Vue.component('nGrid', nGrid)
Vue.component('nBar', nBar)
Vue.component('nMenuItemContentAction', nMenuItemContentAction)
Vue.component('nMenuItemTopBottom', nMenuItemTopBottom)
Vue.component('nMenuItemRow1', nMenuItemRow1)
Vue.component('nMenuItemRow2', nMenuItemRow2)
Vue.component('nFormButton', nFormButton)
Vue.component('nButton', nButton)
Vue.component('nButtonTopRightFloat', nButtonTopRightFloat)
Vue.component('nFormItem', nFormItem)
Vue.component('nDesc', nDesc)

// #ifdef H5
import './nddyny/js/clipboard.js';
uni.saveImageToPhotosAlbum = Vue.prototype.$nddyny.h5.saveFileToPhotosAlbum;
uni.setClipboardData = Vue.prototype.$nddyny.h5.setClipboardData;
uni.getClipboardData = Vue.prototype.$nddyny.h5.getClipboardData;
// #endif

const app = new Vue({
    ...App,
    store
})
app.$mount()

